function shownote(url)
{
	var ifr = coos.$id("note_list_ifr");
	coos.$id("note_list_div").style.display = "";
	ifr.src = url;
}

coos.form.validate.visitor = function(formId,message)
{
	
	coos.$id("subButton").disabled = true;
	var form = coos.$id(formId);
	
	if(form["visitorComment.content"].value.trim() == "" || form["visitorComment.content"].value == message)
	{
		alert("留言内容不能为空，请填写后发表！");
		form["visitorComment.content"].focus();
		coos.$id("subButton").disabled = false;
		return false;
	}
	if(form["visitorComment.content"].value.trim().length > 500)
	{
		alert("留言内容不能超过500个字，请修改后发表！");
		form["visitorComment.content"].focus();
		coos.$id("subButton").disabled = false;
		return false;
	}
	coos.form.submit(form);
	return false;
};

coos.form.validate.visitor.count = function(formId,countId)
{
	var form = coos.$id(formId);
	var obj = form["visitorComment.content"];
	if(obj.value.trim().length > 500)
	{
		alert("留言内容不能超过500个字！");
		obj.value = obj.value.substring(0,500);
	}
	coos.$id(countId).innerHTML = obj.value.trim().length;
	return false;
};
